#!/bin/sh

uci -q batch <<-EOF >/dev/null
    delete firewall.wxedge
    set firewall.wxedge=rule
    set firewall.wxedge.name="wxedge"
    set firewall.wxedge.target="ACCEPT"
    set firewall.wxedge.src="wan"
    set firewall.wxedge.dest_port="40000-65535"
    set firewall.wxedge.enabled="1"
    commit firewall
EOF

/etc/init.d/firewall reload

echo "done"
